package bulider;

/**
 * @author 761472239
 * @Classname ConcreteBuilder
 * @Description 具体创建者，只负责实现创建步骤
 * @Date 2021/8/31 22:18
 */
public class ConcreteBuilder extends Builder{

    @Override
    public void buildPartA() {
        computer.setCpu("AMDRyzen95900HX");
        System.out.println("装主板......");
    }

    @Override
    public void buildPartB() {
        computer.setDisk("1TBSSD固态硬盘");
        System.out.println("装硬盘......");
    }

    @Override
    public void buildPartC() {
        computer.setCard("NVIDIA GeForce RTX 3080");
        System.out.println("装显卡......");
    }

    @Override
    public Computer getProduct() {
        return computer;
    }
}
